In Typescript there is apparently something called
Record<>
which allows you to create an object type without using {}
.For example:
Record<string, Pattern>
is the same as
{ [key: string]: Pattern }
but imo looks a bit more readable. 😊